Ext.define('AM.form.WindowForm',{
	extend: 'Ext.window.Window',
		title: '部门信息',
        collapsible: true,
        animCollapse: true,
//      maximizable: true,
        width: 600,
        height: 400,
        minWidth: 300,
        minHeight: 200,
        layout: 'fit',
        items: newDept,
        dockedItems: [{
            xtype: 'toolbar',
            dock: 'bottom',
            ui: 'footer',
            layout: {
                pack: 'center'
            },
            items: [{
                minWidth: 80,
                text: '保存',
                handler:function(){
            		alert(newDept.getForm().findField("deptName").getValue());
            	}
            },{
                minWidth: 80,
                text: '取消',
                handler:function(){
//            		alert("cancel");
            		this.ownerCt.ownerCt.destroy();
            	}
            }]
        }]
});